﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="page-add.aspx.cs" Inherits="SmartSpace.WebApp._console.page.page_add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
    <script>
        function onselectedtemplate(data) {
            $('#_ctlSelTemplateCaption').val(data.caption);
            $('#_ctlSelTemplateId').val(data.id);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    创建页面
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:LinkButton ID="_ctlBtnSave" runat="server" OnClick="_ctlBtnSave_Click">
        <img src="../resources/images/common/save.png" />save
    </asp:LinkButton>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="box">
        <h2>在站点:<%=SmartSpace.Web.SsSite.Current.Title %>中添加页面
        </h2>
        <div class="block">
            <label>Name:</label><br />
            <asp:TextBox ID="_ctlEditName" runat="server" /><br />
            <label>Caption:</label><br />
            <asp:TextBox ID="_ctlEditCaption" runat="server" /><br />
            <label>Template:</label><br />
            <asp:TextBox ID="_ctlSelTemplateCaption" ClientIDMode="Static" runat="server" ReadOnly="true" />
            <asp:HiddenField ID="_ctlSelTemplateId" ClientIDMode="Static" runat="server" />
            <a href="javascript:void(0);" onclick="_ss.popup('../common/select-page-template.aspx', onselectedtemplate);">选择</a><br />
        </div>
    </div>
</asp:Content>
